Skip to main content

iconGravity

Type

property

Summary

Specifies wether the icon of a button is placed independently of the label.

Syntax

set the iconGravity of <button> to <position>

Description

Use to iconGravity property to position the icon of a button independent of the label.

The margins and borderWidth are taken into account when rendering the icon - the rectangle the icon is placed in is taken to be the button rect after subtracting margins and borderWidth all the way round.

Examples

set the iconGravity of button "next" to "top"

property: borderWidth, icon, margins, iconGravity

Compatibility and Support

Introduced

LiveCode 6.7

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?